(set #readme-file "ReadMe") ;name of the readme file
(set #docs-file "Instructions") ;name of the docs file
(set #highs-file "highs") ;name of high scores file
;----------------------------
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
(message "\n\n\nThis loader needs the WHDLoad program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nWHDLoad is available from aminet (game/patch) or on my site")
(set default-dest
(askdir
(prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon default-dest @app-name))
(set #Game_Ver
(askchoice
(prompt "Which version of Defenders of the Earth do you wish\nto install")
(help @askoptions-help)
(choices
"Original Release"
"TNT Compilation Release (DOE/Shanghai)"
)
)
)
(set #CI_unit
(askchoice
(prompt "From which disk unit do you want\nto install the game")
(help @askoptions-help)
(choices
"DF0:"
"DF1:"
"DF2:"
"DF3:"
)
)
)
(set #CI_drive ("DF%ld:" #CI_unit))
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(makedir
(tackon #dest "data")
(help @makedir-help)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.Slave" @app-name))
(dest #dest)
)
(if
(exists ("%s.newicon" @app-name))
(set #icon
(askchoice
(prompt "\nWhich icon would you like to install?\n")